<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
	<meta content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0,user-scalable=no" name="viewport" id="viewport" />
	<script type="text/javascript" src="__PUBLIC__/com/jquery/jquery.min.js"></script>
	<title>设备UDID</title>

	<br>
	<div class="cnt">
		<div class="card">
			
	<p id="udid">UDID:{$udid}</p>
	<p id="imei">IMEI:{$imei}</p>
	<p id="device">device:{$device}</p>
	<p id="devicename">devicename:{$devicename}</p>
	<p id="deviceversion">DEVICE_VERSION:{$deviceversion}</p>
	<p id="username">username:{$username}</p>
	
		</div>
<!-- username,$device,$devicename,$udid,$deviceversion,$system,$imei -->
	<br><br><br>
	<button onclick="submitData()">
		 上报
	</button>

	</div>
	<script type="text/javascript">
		function submitData() {
			// body...
              $.ajax({
                type:"post",
                url:"__PUBLIC__/index/udid/save",
                data:{"udid":getLabData("#udid")
                	 ,"imei":getLabData("#imei")
                	 ,"device":getLabData("#device")
                	 ,"devicename":getLabData("#devicename")
                	 ,"deviceversion":getLabData("#deviceversion")
                	 },

                	 //username,$device,$devicename,$udid,$deviceversion,$system,$imei
                success:function(res){
                	alert('保存成功'); 
                },
                error: function(e) { 
                	alert(e.message); 
              } 
            });
		}

		function getLabData(tID){
			return $(tID).text().split(":")[1];
		}

	</script>
	<style type="text/css">
		
	.cnt{
		/*content: center;*/
		margin:0 auto;
		text-align: center;

		align: center;
	}
	.card{
		text-align: left;
	}

	button{
		width: 60pt;
		height: 25pt;
	}
	</style>
	</html>